using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 提现申请记录
    /// </summary>
    [Table("JIUSHI_POINTSWITHDRAWAL")]
    public class PointswithdrawalEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("F_ID")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        [Column("F_USERID")]
        [MaxLength(50)]
        public string UserId { get; set; }

        /// <summary>
        /// 类别：0 待审核 1 提现成功 2 拒绝
        /// </summary>
        [Column("F_TYPE")]
        public int? Type { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column("F_REMARK")]
        [MaxLength(255)]
        public string Remark { get; set; }

        /// <summary>
        /// 积分
        /// </summary>
        [Column("F_POINTS")]
        public decimal? Points { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        [Column("F_ATTACHMENTINFO")]
        [MaxLength(65535)]
        public string AttachmentInfo { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Column("F_SORTCODE")]
        public int? SortCode { get; set; }

        /// <summary>
        /// 有效标志
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        [MaxLength(50)]
        public string CreatorUserId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }

        /// <summary>
        /// 修改用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        [MaxLength(50)]
        public string LastModifyUserId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        [MaxLength(50)]
        public string DeleteUserId { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSER")]
        [MaxLength(50)]
        public string CreatorUser { get; set; }


        /// <summary>
        /// 支付方式 1：银行卡 2：支付宝
        /// </summary>
        [Column("F_PayType")]
        public int? PayType { get; set; }

        /// <summary>
        /// 支付账号
        /// </summary>
        [Column("F_PayAccount")]
        [MaxLength(50)]
        public string PayAccount { get; set; }


        /// <summary>
        /// 支付名称
        /// </summary>
        [Column("F_PayName")]
        [MaxLength(50)]
        public string PayName { get; set; }

        /// <summary>
        /// 银行名称
        /// </summary>
        [Column("F_PayBankName")]
        [MaxLength(50)]
        public string PayBankName { get; set; }

        /// <summary>
        /// 银行账号
        /// </summary>
        [Column("F_PayBankNumber")]
        [MaxLength(50)]
        public string PayBankNumber { get; set; }
    }
}
